
package com.fire.eyes.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.fire.eyes.model.SiteModel;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * SiteDao
 *
 * @author Matthew
 * @Date 2019-01-17 20:50
 */
@Repository
public interface SiteMapper extends BaseMapper<SiteModel>{

	/**
	 * 根据实体查询列表
	 * @param model 实体
	 * @return
	 */
	List<SiteModel> selectListByModel(@Param("e") SiteModel model);


	/**
	 * 查询站点详情
	 * @param siteId 站点ID
	 * @return
	 */
	Map querySiteDetail(@Param("siteId") String siteId);

	/**
	 *
	 * @param page
	 * @param column
	 * @param columbValue
	 * @return
	 */
	List<Map<String,Object>> querySiteList(Pagination page, @Param("column")String column, @Param("columbValue")String columbValue);

	List<Map<String,Object>> queryMyMaitainorsList(Pagination page, @Param("supervisorId")String supervisorId);

	List<Map<String,Object>> queryMyProprietorsList(Pagination page, @Param("supervisorId")String supervisorId);


}
